package com.pds.web.monitor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pds.web.monitor.domain.CompanyContact;
import com.pds.web.monitor.domain.MonitorContractDTO;
import com.pds.web.monitor.domain.PdsMonitorContract;
import com.pds.web.monitor.domain.PdsMonitorContractVO;
import com.pds.web.monitor.dto.ContractDTO;

import java.util.List;

public interface PdsMonitorContractMapper extends BaseMapper<PdsMonitorContract> {

    int insertContract(PdsMonitorContract pdsMonitorContract);

    Long selectCompanyId(Long deptId);

    int updateContract(PdsMonitorContract pdsMonitorContract);

    int deleteContract(Long id);

    List<PdsMonitorContractVO> listContract(MonitorContractDTO monitorContractDTO);

    List<CompanyContact> selectContact(Long companyId);

    Long selectOrganizationId(long deptId);

    List<PdsMonitorContractVO> listAll(ContractDTO contractDTO);

    PdsMonitorContractVO queryById(Long id);
}
